<%@ page language="java" pageEncoding="UTF-8" import="java.util.*"
	errorPage="../defaultException.jsp"%>
<%@include file="../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8" />
<%@include file="head.jsp"%>
<title>用户登录</title>
<script type="text/javascript">
	$(function() {

		$('#login').panel({
			title : '用户登录',
			width : 450,
			height : 650,
			border : true
		});
	});
	function refresh(obj) {
		obj.src = "${cpath}/admin/verifyCode?t=" + Math.random();
	}
</script>
</head>
<body>
	<div align="center">
		<form id="form" method="post" action="${cpath}/admin/login">
			<table id="login" width="450" height="250" class="datagrid-toolbar1"
				align="center">
				<tr>
					<td height="50" align="center">用户名:</td>
					<td><input id="login_name" type="text" name="username"
						class="easyui-validatebox" data-options="required:true">
					</td>
				</tr>
				<tr>
					<td height="50" align="center">密 码:</td>
					<td><input id="login_pwd" type="password" name="password"
						class="easyui-validatebox" data-options="required:true">
					</td>
				</tr>
				<tr>
					<td height="50" align="center">验证码:</td>
					<td><input type="text" name="randomCode" /> <img alt="点击更换"
						onclick="javascript:refresh(this);"
						src="${cpath}/admin/verifyCode?t=" +Math.random() /> <label>看不清,点击图片刷新</label>
					</td>
				</tr>


				<tr>
					<td align="center" colspan="2"><input type="submit" value="登录"
						style="width: 80px; height: 25px;"> <input type="reset"
						value="重置" style="width: 80px; height: 25px;" /></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
